package mybatisTest.cglib.jdkdp;

import sun.misc.ProxyGenerator;

import java.util.Arrays;

public class Test {
    public static void main(String[] args) {
        UserInterfaceImpl userImpl=new UserInterfaceImpl("Bob");
        MyInvocationHandler myInvocationHandler=new MyInvocationHandler(userImpl);

        UserInterface getproxy =(UserInterface)myInvocationHandler.getproxy();
        getproxy.sayName();
        getproxy.sayWord("hahaha");
    }
}
